class ISplitter{
public:
    virtual void split()=0;
    virtual ~ISplitter(){}
};

class FactorySplitter{
    virtual ISplitter* CreateSplitter()=0;
    virtual ~FactorySplitter();
};

class BinarySplitter : public FactorySplitter{
    ISplitter* CreateSplitter()
    {
        //这里怎么没有实体类了，返回对象错误
        return new BinarySplitter();
    }
};

class TxtSplitter: public FactorySplitter{
     ISplitter* CreateSplitter()
    {
        return new TxtSplitter();
    }
};

class PictureSplitter: public FactorySplitter{
     ISplitter* CreateSplitter()
    {
        return new PictureSplitter();
    }
};

class VideoSplitter: public FactorySplitter{
     ISplitter* CreateSplitter()
    {
        return new VideoSplitter();
    }
};

